package com.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.*;

//菜单表
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Menu {

    //菜单主键
    //@Size(min = 0,message = "主键字段必须大于0")
    private Long id;

    //菜单名
    //@NotBlank(message = "菜单名不能为空")
    //@NotNull(message = "菜单名不能为空")
    private String name;

    //菜单价格
   // @Min(value = 0L,message = "菜单价格必须大于0")
    private Double price;

    //菜单口味
    //@NotBlank(message = "菜单口味不能为空")
    //@NotNull(message = "菜单口味不能为空")
    private String flavor;
}
